function submitQuiz()
{
	var numberCorrect = 0;
	
	var q1 = document.forms.quiz1.firstquestion;
	
	if( q1[ 2 ].checked == true)
	{
		numberCorrect = numberCorrect + 1;
	}
	
	var q2 = document.forms.quiz1.secondquestion;
	
	if( q2[ 1 ].checked == true)
	{
		numberCorrect = numberCorrect + 1;
	}

	var q3 = document.forms.quiz1.thirdquestion;
	
	if( q3[ 3 ].checked == true)
	{
		numberCorrect = numberCorrect + 1;
	}
	
	var q4 = document.forms.quiz1.fourthquestion;
	
	if( q4[ 0 ].checked == true)
	{
		numberCorrect = numberCorrect + 1;
	}

	var q5 = document.forms.quiz1.fifthquestion;
	
	if( q5[ 1 ].checked == true)
	{
		numberCorrect = numberCorrect + 1;
	}
	
	var q6 = document.forms.quiz1.sixthquestion;
	
	if( q6[ 3 ].checked == true)
	{
		numberCorrect = numberCorrect + 1;
	}
	
	var score = numberCorrect / 6 * 100;
	alert ( "Your score is " + Math.round(score) + "%");
	
	parent.reportScores();
}